package File;

import java.io.File;

public class Dome4 {
    public static void main(String[] args) {
        File dir = new File("./testDir");
        File dir2 = new File("./testDir1/aaa/bbb/ccc");
        //mkdir创建 一级目录
        dir.mkdir();
        //mkdirs创建多级目录
        dir2.mkdirs();
        System.out.println(dir.isDirectory());
        System.out.println(dir2.isDirectory());
    }
}
